function xextr = edges(x, f)
%EDGES cutting extremums of continious function f on interval x sizes of x and f MUST AGREE!
% INPUT:
%      x - arguments array;
%      f - array of values of function f(x) that corresponds to arguments
% OUTPUT:
%      xextr - col-vector of extremums arguments of multimodal function
%

xmax = maxEdges(x, f);
xmin = minEdges(x, f);
xextr = sort([xmax; xmin]);
end